package com.sg.business.commons.operation.handler;

import com.sg.business.commons.ui.UIFrameworkUtils;
import com.sg.business.model.Project;
import com.sg.widgets.commons.editingsupport.CellClickListener;

public class BrowseProject extends  CellClickListener{


//	protected String getTargetPerspectiveId() {
//		return "browse.project";
//	}

	@Override
	protected void selected(Object data, String columnId) {
		
		UIFrameworkUtils.navigateToProject((Project) data);
//		IWorkbenchWindow window = PlatformUI.getWorkbench()
//				.getActiveWorkbenchWindow();
//		String previousPerspective = window.getActivePage()
//				.getPerspective().getId();
//		PrimaryObjectBrowserInput input = new PrimaryObjectBrowserInput(
//				(PrimaryObject) data, previousPerspective);
//		String perspectiveId = getTargetPerspectiveId();
//		// window.openPage(perspectiveId, input);
//		try {
//			PlatformUI.getWorkbench().showPerspective(perspectiveId,
//					window, input);
//		} catch (WorkbenchException e) {
//			e.printStackTrace();
//		}		
	}

}
